package javaapplication1;
import java.util.Scanner;
public class numeros {
    public static void main (String[] args){
        int[] array_numeros = new int[11];
        int mes_petit;
        mes_petit = array_numeros[0];
        Scanner lector = new Scanner (System.in);
        int i=1;
        //inicio bucle
        while (i<=10) {
            System.out.println("Entra'm cinc numeros i et diré quin es el mes petit: ");
            array_numeros[i] = lector.nextInt();
            i++;
        }
        /inicio bucle
        for (int j=0;j<=array_numeros.length;j++){
            if (array_numeros[6] < mes_petit) {
                mes_petit = array_numeros[i];
            }
        }
        System.out.println(mes_petit);
}
}